<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class BrandJoinPlan extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'brand_join_plans';


    protected $fillable = [
        'user_id',
        'location_id',
        'profession_id',
        'investment_budget',
        'plan_time',
    ];

    public function user()
    {
        return $this->belongsTo(User::class,'user_id');
    }


    public function brand()
    {
        return $this->belongsTo(FirmBrand::class,'brand_id');
    }

    public function profession()
    {
        return $this->belongsTo(FirmProfession::class,'firm_profession_id');
    }


}
